#!/bin/bash
## Platform:All Linux Based Platform
## author:Long Tao
## version:1.0
## description:This is qudan-before project build script
## Company:QuDan
time=`date '+%Y-%m-%d-%H-%M-%S'`
echo $time
fileName=quwan
bakPath=/home/app/project/backup/qudan-before
echo "备份文件路径：" $bakPath
yarn -v
yarn
export CI=false
yarn build

file_mv(){
  mkdir $bakPath/$time
  cp -r $fileName $bakPath/$time
  chown -R app:docker $bakPath/$time
}

file_mv
